import java.util.Scanner;
public class Text4 {
    public static void main(String[] args) {
        String huaweiBrand = "华为";
        String xiaomiBrand = "小米";
        double huaweiPrice = 3688.88;
        double xiaomiPrice = 2988.88;
        float huaweiSize = 5.5f;
        float xiaomiSize = 5.0f;
        String huaweiconfig = "8+128g 全面刘海屏";
        String xiaomiconfig = "4+64g 全面屏";

        //华为手机入库
        System.out.println("品牌型号：" + huaweiBrand);
        System.out.println("尺寸：" + huaweiSize);
        System.out.println("价格：" + huaweiPrice);
        System.out.println("配置：" + huaweiconfig);
        Scanner input = new Scanner(System.in);
        System.out.print("请输入" + huaweiBrand + "手机的库存：");
        int huaweiCount = input.nextInt();
        System.out.println("库存" + huaweiBrand + "手机的总金额：" + huaweiPrice*huaweiCount);
        System.out.println("-----------------------------------------");

        //小米手机入库
        System.out.println("品牌型号：" + xiaomiBrand);
        System.out.println("尺寸：" + xiaomiSize);
        System.out.println("价格：" + xiaomiPrice);
        System.out.println("配置：" + xiaomiconfig);
        System.out.print("请输入" + xiaomiBrand + "手机的库存：");
        int xiaomiCount = input.nextInt();
        System.out.println("库存" + xiaomiBrand + "手机的总金额：" + xiaomiPrice*xiaomiCount);
        System.out.println("--------------库存清单--------------");
        System.out.println("品牌型号    尺寸      价格                配置              库存数量       总价");
        System.out.println(huaweiBrand + "       " + huaweiSize + "      " + huaweiPrice + "      " + huaweiconfig + "          " + huaweiCount + "         " + huaweiCount*huaweiPrice);
        System.out.println(xiaomiBrand + "       " + xiaomiSize + "      " + xiaomiPrice + "       " + xiaomiconfig + "             " + xiaomiCount + "        " + xiaomiCount*xiaomiPrice);
        System.out.println("-----------------------------------------");
        System.out.println("总库存：" + (huaweiCount+xiaomiCount));
        System.out.println("库存总价：¥" + (huaweiCount * huaweiPrice + xiaomiCount * xiaomiPrice));
    }
}

